<%@ page language="java" import="com.shop.mall.utils.*,com.shop.mall.entity.*,com.shop.mall.dao.impl.*"
         pageEncoding="utf-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<%
    String id = request.getParameter("id");
    BookDaoImpl bd = new BookDaoImpl();
    int r = bd.delete(Integer.parseInt(id));
    if (r == 1) {
%>

<script type="text/javascript"> alert("删除成功！");
location.href = 'index.jsp';</script>
<%
    }
%>

<body>
</body>
</html>
